<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>评论管理</title>
<LINK href="__PUBLIC__/styles/general.css" type="text/css" rel="stylesheet">
<LINK href="__PUBLIC__/styles/main.css" type="text/css" rel="stylesheet">
<style type="text/css">
.Calendar {
	font: 12px Arial, Helvetica, sans-serif;
	overflow:hidden;
	position:absolute;
	text-align:center;
	width:189px;
	color:#333333;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	border:#e3e3e3 1px solid;
	background:#eee;
	padding:1px;
	float:left;
}
.Calendar .top {
	-moz-border-radius:3px 3px 0px 0px;
	-webkit-border-top-left-radius:3px;
	-webkit-border-top-right-radius:3px;
	padding:5px;
	background:#F7B343;
	border:#F8A221 solid 1px;
	height:20px;
	color:#ffffff;
	overflow:hidden;
	clear:both;
	font-size:16px;
	line-height:20px;
}
.Calendar .arrow {
	width:13px;
	height:13px;
	background:#FFF;
	-moz-border-radius:7px;
	-webkit-border-radius:7px;
	display:block;
	margin-top:4px;
}
.Calendar .arrow div {
	width:0px;
	height:1px;
	margin-top:2px;
	font-size:0px;
	overflow:hidden;
}
.Calendar .arrow .right {
	border-left:#36547F 4px solid;
	border-bottom:#FFF 4px solid;
	border-top:#FFF 4px solid;
	margin-left:5px;
@margin-left:1px;
}
.Calendar .arrow .left {
	border-right:#36547F 4px solid;
	border-bottom:#FFF 4px solid;
	border-top:#FFF 4px solid;
	margin-left:4px;
@margin-left:0px;
}
.Calendar .top b {
	cursor:pointer;
	text-align:center;
	display:block;
	float:left;
}
.Calendar .week {
	font-weight:bold;
	padding-top:5px;
	padding-bottom:5px;
	clear:both;
}
.Calendar .week div {
	width:27px;
	height:19px;
	line-height:19px;
	float:left;
	text-align:center;
}
.Calendar .day {
	overflow:hidden;
	font-weight:bold;
	cursor:default;
	clear:both;
}
.Calendar .day a {
	display:block;
	margin:1px;
	width:23px;
	background:#FFF;
	height:18px;
	line-height:18px;
	outline: none;
	float:left;
 star:expression(this.onFocus=this.blur());
	color:#1C94C4;
	border:#e3e3e3 solid 1px;
	text-decoration:none;
}
.Calendar .day a:hover {
	width:23px;
	line-height:18px;
	background:#FDF9E1;
	color:#F60;
	height:18px;
	border:#FBCB09 solid 1px;
}
.Calendar .day .today {
	border:#36547F 1px solid;
	width:23px;
	height:16px;
	line-height:16px;
	border:#FBCB09 1px solid;
}
.Calendar .day .select {
	color:#FF0;
	background:#FC3
}
.Calendar .day .disable {
	color:#aaaaaa;
}
.Calendar .bottom {
	color:#666666;
	height:20px;
	line-height:20px;
	padding:5px;
	border-top:#e3e3e3 solid 1px;
	margin-top:5px;
	-moz-border-radius:0px 0px 3px 3px;
	-webkit-border-bottom-left-radius:3px;
	-webkit-border-bottom-right-radius:3px;
	clear:both;
}
.Calendar .bottom .time {
	width:92px;
	overflow:hidden;
	float:left;
	height:20px;
	text-align:center;
}
.Calendar .bottom .time input {
	width:16px;
@width:14px;
	height:14px;
	overflow:hidden;
	border:#F8A221 1px solid;
	background:#FFF;
	color:#666666;
	font: 12px Arial, Helvetica, sans-serif;
	padding:1px;
	margin-top:1px;
	_margin-top:0px;
}
.Calendar .bottom .cal_btn {
	height:16px;
	background:#F7B343;
	border:#F8A221 solid 1px;
	color:#ffffff;
	float:left;
	overflow:hidden;
	line-height:17px;
	line-height:18px\9;
	_line-height:16px;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	width:40px;
	text-align:center;
	display:block;
	cursor:pointer;
	margin-top:1px;
	font-family:"宋体";
}
#demo {
	top:80px;
}
</style>
<script src="__PUBLIC__/js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="__PUBLIC__/js/init.js"></script>
</head>
<body>
  <H1><SPAN class=action-span1><A href="">评论管理</A> </SPAN><SPAN class=action-span1 id=search_id></SPAN>
  <DIV style="CLEAR: both"></DIV>
</H1>
<form method="post" action="/index.php/Admin/kept/kept_comments">
  <!-- $Id: goods_search.htm 16790 2009-11-10 08:56:15Z wangleisvn $ -->
  <div class="form-div" id="demo">开始日期：
    <input type="text" value="" id="calen" name="date1" onkeydown="return false" onkeyup="return false" oncontextmenu="return false" />
    结束日期：
    <input type="text" value="" id="calen2" name="date2" onkeydown="return false" onkeyup="return false" oncontextmenu="return false" />
    关键词
    <input type="text" name="key"  />
    <input type="submit" value="查询" />
  </div>
</form>
<!-- 商品列表 -->
<form method="post" action="" name="form1" id="form1" >
  <!-- start goods list -->
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
      <tr>
        <th> <input onclick=CheckAll('selectAll',this) type="checkbox" name="selected" />
         编号</th>
        <th>评论标题</th>
        <th>会员</th>
        <th>时间</th>
        <th>审核</th>
        <th>操作</th>
      <tr>
        <volist name='kept_list' id="list">
      <tr>
        <td><input type="checkbox" name="box" value="{$list.id}" />
          {$list.id}</td>
        <td class="first-cell" style="">{$list.title}</td>
        <td>{$list.user}</td>
        <td>{$list.data|date="Y-m-d H:i:s",###} </td>
        <td><if condition="$list.is eq 1"><a href="javascript:;" onclick="shens({$list.id})" title="取消审核">是</a>
            <else/>
            <a href="javascript:;" onclick="shen({$list.id})" title="审核">否</a> </if></td>
        <td align="center"> <a href="/index.php/Admin/kept/xiugaip/id/{$list.id}" title="编辑">编辑</a> <a href="javascript:;" onclick="shan({$list.id})" title="删除">删除</a></td>
      </tr>
      </volist>
      
    </table>
  </div>
  <br />
  <select id="pl" onchange="num();">
    <option>批量操作</option>
    <option value="1">审核</option>
    <option value="2">取消审核</option>
    <option value="3">删除</option>
  </select>
  {$page}
  <div> </div>
</form>
<script type="text/javascript">
    function shan(id){
		 if(window.confirm("确实要删除ID为"+id+"的数据吗？")){
			 window.location.href="/index.php/Admin/kept/shanp/id/"+id;
		}
	}
	
	function shen(id){
		if(window.confirm("确实要审核ID为"+id+"的审核状态吗？")){
			 window.location.href="/index.php/Admin/kept/shenp/id/"+id;
		}
    }
	
	function shens(id){
		if(window.confirm("确实要取消审核ID为"+id+"的审核状态吗？")){
			 window.location.href="/index.php/Admin/kept/shensp/id/"+id;
		}
    }
	
</script>
<script type="text/javascript">
var property={
	divId:"demo",//日历控件最外层DIV的ID
	needTime:true,//是否需要显示精确到秒的时间选择器，即输出时间中是否需要精确到小时：分：秒 默认为FALSE可不填
	yearRange:[1970,2080],//可选年份的范围,数组第一个为开始年份，第二个为结束年份,如[1970,2030],可不填
	week:['日','一','二','三','四','五','六'],//数组，设定了周日至周六的显示格式,可不填
	month:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],//数组，设定了12个月份的显示格式,可不填
	format:"yyyy-MM-dd hh:mm:ss"/*设定日期的输出格式,可不填*/
};
$(document).ready(function(){
	canva2=$.createGooCalendar("calen",property);
	canva2=$.createGooCalendar("calen2",property);
});
</script>
<script type="text/javascript">
        function CheckAll(value,obj)  {
var form=document.getElementsByTagName("form")
 for(var i=0;i<form.length;i++){
    for (var j=0;j<form[i].elements.length;j++){
    if(form[i].elements[j].type=="checkbox"){ 
    var e = form[i].elements[j]; 
    if (value=="selectAll"){e.checked=obj.checked}     
    else{e.checked=!e.checked;} 
       }
    }
 }
}

function num(){
    var targetSlect=document.getElementById("pl");  
    var targetHref=targetSlect.options[targetSlect.selectedIndex].value;  
    huoqu(targetHref);  	
}
function huoqu(num){
	
   var str=document.getElementsByName("box");
   var objarray=str.length;
   var chestr="";
for (i=0;i<objarray;i++)
{
  if(str[i].checked == true)
  {
   chestr+=str[i].value+",";
  }
} 
if(chestr == "")
{
  alert("你还没有选择");
}
else
{
  if(num==1){
	  if(window.confirm("确实要审核ID为"+chestr+"的数据吗？")){
	   window.location.href="/index.php/Admin/kept/shenp/id/"+chestr+"-2";
	  }
  }else if(num==2){
	  if(window.confirm("确实要取消ID为"+chestr+"的审核吗？")){
	   window.location.href="/index.php/Admin/kept/shensp/id/"+chestr+"-2";
	  }
  }else{
	  if(window.confirm("确实要删除ID为"+chestr+"的数据吗？")){
			 window.location.href="/index.php/Admin/kept/shanp/id/"+chestr+"-2";
		}
  }
}
}
</script>
</body>
</html>
